package day04;
public class Computer {
    private char color;
    private int cpuModel;
    public Computer() {
        this.color = ' ';
        this.cpuModel = 0;
    }

    public Computer(char color, int cpuModel) {
        this.color = color;
        this.cpuModel = cpuModel;
    }
    public void Info() {
        System.out.println("笔记本的颜色: " + color);
        System.out.println("笔记本的CPU型号: " + cpuModel);
    }

    public char getColor() {
        return color;
    }

    public void setColor(char color) {
        this.color = color;
    }

    public int getCpuModel() {
        return cpuModel;
    }

    public void setCpuModel(int cpuModel) {
        this.cpuModel = cpuModel;
    }

}





